﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020011AB RID: 4523
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ShareScRsp : IMessage<ShareScRsp>, IMessage, IEquatable<ShareScRsp>, IDeepCloneable<ShareScRsp>, IBufferMessage
	{
		// Token: 0x1700393B RID: 14651
		// (get) Token: 0x0600CA7F RID: 51839 RVA: 0x002219E3 File Offset: 0x0021FBE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ShareScRsp> Parser
		{
			get
			{
				return ShareScRsp._parser;
			}
		}

		// Token: 0x1700393C RID: 14652
		// (get) Token: 0x0600CA80 RID: 51840 RVA: 0x002219EA File Offset: 0x0021FBEA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ShareScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700393D RID: 14653
		// (get) Token: 0x0600CA81 RID: 51841 RVA: 0x002219FC File Offset: 0x0021FBFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ShareScRsp.Descriptor;
			}
		}

		// Token: 0x0600CA82 RID: 51842 RVA: 0x00221A03 File Offset: 0x0021FC03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ShareScRsp()
		{
		}

		// Token: 0x0600CA83 RID: 51843 RVA: 0x00221A0C File Offset: 0x0021FC0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ShareScRsp(ShareScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.eHPBNDDIHIJ_ = ((other.eHPBNDDIHIJ_ != null) ? other.eHPBNDDIHIJ_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CA84 RID: 51844 RVA: 0x00221A74 File Offset: 0x0021FC74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ShareScRsp Clone()
		{
			return new ShareScRsp(this);
		}

		// Token: 0x1700393E RID: 14654
		// (get) Token: 0x0600CA85 RID: 51845 RVA: 0x00221A7C File Offset: 0x0021FC7C
		// (set) Token: 0x0600CA86 RID: 51846 RVA: 0x00221A84 File Offset: 0x0021FC84
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x1700393F RID: 14655
		// (get) Token: 0x0600CA87 RID: 51847 RVA: 0x00221A8D File Offset: 0x0021FC8D
		// (set) Token: 0x0600CA88 RID: 51848 RVA: 0x00221A95 File Offset: 0x0021FC95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ShareData EHPBNDDIHIJ
		{
			get
			{
				return this.eHPBNDDIHIJ_;
			}
			set
			{
				this.eHPBNDDIHIJ_ = value;
			}
		}

		// Token: 0x17003940 RID: 14656
		// (get) Token: 0x0600CA89 RID: 51849 RVA: 0x00221A9E File Offset: 0x0021FC9E
		// (set) Token: 0x0600CA8A RID: 51850 RVA: 0x00221AA6 File Offset: 0x0021FCA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CA8B RID: 51851 RVA: 0x00221AAF File Offset: 0x0021FCAF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ShareScRsp);
		}

		// Token: 0x0600CA8C RID: 51852 RVA: 0x00221AC0 File Offset: 0x0021FCC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ShareScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && object.Equals(this.EHPBNDDIHIJ, other.EHPBNDDIHIJ) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CA8D RID: 51853 RVA: 0x00221B24 File Offset: 0x0021FD24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.eHPBNDDIHIJ_ != null)
			{
				num ^= this.EHPBNDDIHIJ.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CA8E RID: 51854 RVA: 0x00221B8F File Offset: 0x0021FD8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CA8F RID: 51855 RVA: 0x00221B97 File Offset: 0x0021FD97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CA90 RID: 51856 RVA: 0x00221BA0 File Offset: 0x0021FDA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.Reward);
			}
			if (this.eHPBNDDIHIJ_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.EHPBNDDIHIJ);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CA91 RID: 51857 RVA: 0x00221C18 File Offset: 0x0021FE18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.eHPBNDDIHIJ_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EHPBNDDIHIJ);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CA92 RID: 51858 RVA: 0x00221C88 File Offset: 0x0021FE88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ShareScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.eHPBNDDIHIJ_ != null)
			{
				if (this.eHPBNDDIHIJ_ == null)
				{
					this.EHPBNDDIHIJ = new ShareData();
				}
				this.EHPBNDDIHIJ.MergeFrom(other.EHPBNDDIHIJ);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CA93 RID: 51859 RVA: 0x00221D1C File Offset: 0x0021FF1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CA94 RID: 51860 RVA: 0x00221D28 File Offset: 0x0021FF28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 98U)
					{
						if (num != 122U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.eHPBNDDIHIJ_ == null)
							{
								this.EHPBNDDIHIJ = new ShareData();
							}
							input.ReadMessage(this.EHPBNDDIHIJ);
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005140 RID: 20800
		private static readonly MessageParser<ShareScRsp> _parser = new MessageParser<ShareScRsp>(() => new ShareScRsp());

		// Token: 0x04005141 RID: 20801
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005142 RID: 20802
		public const int RewardFieldNumber = 12;

		// Token: 0x04005143 RID: 20803
		private ItemList reward_;

		// Token: 0x04005144 RID: 20804
		public const int EHPBNDDIHIJFieldNumber = 15;

		// Token: 0x04005145 RID: 20805
		private ShareData eHPBNDDIHIJ_;

		// Token: 0x04005146 RID: 20806
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04005147 RID: 20807
		private uint retcode_;
	}
}
